package com.example.concurrency.chapter3;

import java.util.concurrent.ThreadLocalRandom;

public class ThreadLocalRandomTests {
    public static void main(String[] args) {
        ThreadLocalRandom random = ThreadLocalRandom.current();
        // 返回 [0, 5) 之间的随机数
        random.nextInt(5);
    }
}
